package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.pojo.StageWorkPojo;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotNull;

/**
 * 阶段任务保存
 * @author 李少杰
 * @version v1.0.0
 * @date 2021/12/1 19:44
 */
@Getter
@Setter
@ToString
public class StageWorkSaveDTO extends BaseDTO {

    /**
     * 主键id
     */
    private Long id;
    /**
     * 表单id
     */
    @NotNull(message = "{dto.msg.processEnable.formId.NotNull}")
    private Long formId;
    /**
     * 阶段id
     */
    @NotNull(message = "{dto.msg.stageProcessEnable.stageProcessId.NotNull}")
    private Long stageId;
    /**
     * 业务类型
     */
    private Integer businessType;
     /**
     * saas标记
     */
    @DecimalMin(value = "1", message = "{dto.msg.processEnable.saasMark.DecimalMin}")
    @DecimalMax(value = "2", message = "{dto.msg.processEnable.saasMark.DecimalMax}")
    @NotNull(message = "{dto.msg.processEnable.saasMark.NotNull}")
    private Integer saasMark;
    /**
     * 阶段任务封装
     */
    @NotNull
    private StageWorkPojo stageWorkPojo;
}
